import request from '@/utils/request'

// 查询缓存详细
export function listPet(query) {
  return request({
    url: '/pet/list',
    method: 'get',
    params: query
  })
}

export function getPet(petId) {
  return request({
    url: '/pet/get/' + petId,
    method: 'get'
  })
}


export function addPet(data) {
  return request({
    url: '/pet/add',
    method: 'post',
    data: data
  })
}


export function updatePet(data) {
  return request({
    url: '/pet/update',
    method: 'post',
    data: data
  })
}


export function delPet(petId) {
  return request({
    url: '/pet/del/' + petId,
    method: 'post'
  })
}

